package com.butterfly.domain.entity;

import javax.persistence.Entity;

@Entity
public class User extends BaseEntity {

    private static final long serialVersionUID = -2009626847274424244L;

    private String username;

    private String password;

    private EntryMode entryMode;

    private boolean enabled;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public EntryMode getEntryMode() {
        return entryMode;
    }

    public void setEntryMode(EntryMode entryMode) {
        this.entryMode = entryMode;
    }

    @Override
    public String toString() {
        return "User [username=" + username + ", password=" + password
                + ", enabled=" + enabled + "]";
    }

}
